﻿using System;

namespace Yozeev.IO.ExcelHelper.Attributes
{
    /// <summary>
    /// Excel模型的列，使用在属性上。
    /// 需要在属性中指明该列是excel表格中第几列
    /// </summary>
    public class ExcelColumn : Attribute
    {
        /// <summary>
        /// 字段的列，从第0列开始
        /// </summary>
        private int _columnIndex;

        public ExcelColumn(int columnIndex)
        {
            this._columnIndex = columnIndex;
        }

        public int ColumnIndex
        {
            get { return _columnIndex; }
            set { _columnIndex = value; }
        }
    }
}
